* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	1.12.2021	17:46:03	lx	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/table/db_connection_preference.json'	1.	1.12.2021	17:46:03	lx	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/auth/connection.json'	1.	1.12.2021	17:46:03	lx	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/../nc-preference/.nc-env.json'	1.	1.12.2021	17:46:03	lx	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	1.12.2021	17:46:03	lx	(1. Application process)

  database connect time: 0.001 seconds.	1.12.2021	17:46:03	lx	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	1.12.2021	17:46:03	lx	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/table/prf/group.json'	1.	1.12.2021	17:46:03	lx	(1. Application process)


error: preference 'system/nc_server_start.json' was not found
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:542: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dprf.lua:466: in function 'preferenceFromJson'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:44: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:27>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
	1.	1.12.2021	17:46:03	lx	(1. Application process)

Tcp server 2 start check: start.	1.12.2021	17:46:03	_lx_SERVER	(1. Application process)

Käynnisteään Tcp palvelin 2.	1.12.2021	17:46:03	_lx_SERVER	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	1.12.2021	17:46:05	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/table/db_connection_preference.json'	1.	1.12.2021	17:46:05	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/auth/connection.json'	1.	1.12.2021	17:46:05	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/../nc-preference/.nc-env.json'	1.	1.12.2021	17:46:05	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	1.12.2021	17:46:05	lx	(4. palvelin)

  database connect time: 0.000 seconds.	1.12.2021	17:46:05	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	1.12.2021	17:46:05	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	1.12.2021	17:46:05	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/table/prf/group.json'	1.	1.12.2021	17:46:05	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0133398c90, size: 400.	1.12.2021	17:46:05	lx	(4. palvelin)

********************* /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/ *********************.	1.12.2021	17:46:05	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	1.12.2021	17:46:05	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	1.12.2021	17:46:05	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	1.12.2021	17:46:05	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	1.12.2021	17:46:05	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	1.12.2021	17:46:05	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	1.12.2021	17:46:05	lx	(4. palvelin)

All plugins have been loaded	1.	1.12.2021	17:46:05	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json.	1.12.2021	17:46:05	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	1.12.2021	17:46:05	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	1.12.2021	17:46:05	lx	(4. palvelin)

Mac address: f84d896921dc	1.	1.12.2021	17:46:05	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	1.12.2021	17:46:05	lx	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://10.151.56.127:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://10.151.56.127:5949/	1.	1.12.2021	17:46:05	lx	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 10.151.56.127:5949/	1.	1.12.2021	17:46:05	lx	(4. palvelin)

--- server started in 0.006 seconds, 2021-12-01 17:46:05, used memory 3056.4 kb ---	5.	1.12.2021	17:46:05	lx	(4. palvelin)

OSX arm64, using: rapidjson_arm	1.	1.12.2021	17:46:05	lx	(4. palvelin)

Taululle ei ole ladattu tietuetta: Myyntitilauksen rivi ([Myyntitilauksen rivi]Tuote).	1.12.2021	17:46:12	_fld VALUE	(5. tbl_ 4)

Starting to stop tcp server 2, max. delay 1 seconds...	1.12.2021	22:30:14	_lx_SERVER	(5. tbl_ 7)

*** tcp close for sock 73, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	1.12.2021	22:30:14	lx	(4. palvelin)

closing socket '73'	1.	1.12.2021	22:30:14	lx	(4. palvelin)

*** tcp close for sock 74, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	1.12.2021	22:30:14	lx	(4. palvelin)

closing socket '74'	1.	1.12.2021	22:30:14	lx	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            1190144
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0	1.	1.12.2021	22:30:14	lx	(4. palvelin)

--- server stopped ---.	1.12.2021	22:30:14	lx	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x0133398c90.	1.12.2021	22:30:14	lx	(4. palvelin)

Tcp palvelin 2 sammutettu.	1.12.2021	22:30:14	_lx_SERVER	(4. palvelin)

Tcp server 2 is disabled by '<>_lx_lServerStart'...	1.12.2021	23:42:20	_lx_SERVER	(5. tbl_ 7)

Tcp server 2 is disabled by '<>_lx_lServerStart'...	1.12.2021	23:42:48	_lx_SERVER	(5. tbl_ 7)

Käynnisteään Tcp palvelin 2.	1.12.2021	23:43:08	_lx_SERVER	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	1.12.2021	23:43:09	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/table/db_connection_preference.json'	1.	1.12.2021	23:43:09	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/auth/connection.json'	1.	1.12.2021	23:43:09	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/../nc-preference/.nc-env.json'	1.	1.12.2021	23:43:09	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	1.12.2021	23:43:09	lx	(4. palvelin)

  database connect time: 0.0004 seconds.	1.12.2021	23:43:09	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	1.12.2021	23:43:09	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	1.12.2021	23:43:09	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/table/prf/group.json'	1.	1.12.2021	23:43:09	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x010b619c60, size: 400.	1.12.2021	23:43:09	lx	(4. palvelin)

********************* /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/ *********************.	1.12.2021	23:43:09	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	1.12.2021	23:43:09	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	1.12.2021	23:43:09	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	1.12.2021	23:43:09	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	1.12.2021	23:43:09	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	1.12.2021	23:43:09	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	1.12.2021	23:43:10	lx	(4. palvelin)

All plugins have been loaded	1.	1.12.2021	23:43:10	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json.	1.12.2021	23:43:10	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	1.12.2021	23:43:10	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	1.12.2021	23:43:10	lx	(4. palvelin)

Mac address: f84d896921dc	1.	1.12.2021	23:43:10	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	1.12.2021	23:43:10	lx	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/	1.	1.12.2021	23:43:10	lx	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949/	1.	1.12.2021	23:43:10	lx	(4. palvelin)

--- server started in 0.006 seconds, 2021-12-01 23:43:10, used memory 3101.7 kb ---	5.	1.12.2021	23:43:10	lx	(4. palvelin)

OSX arm64, using: rapidjson_arm	1.	1.12.2021	23:43:10	lx	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-01 23:43:17
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 507
Content-Uncompressed-Length: 584

LZ4.	1.12.2021	23:43:17	lx	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1.	1.12.2021	23:43:17	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/../nc-preference/.nc-env.json'	1.	1.12.2021	23:43:17	lx	(4. palvelin)

    Connected to: 'Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo'	1.	1.12.2021	23:43:17	lx	(4. palvelin)

  database connect time: 0.0001 seconds.	1.12.2021	23:43:17	lx	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'rest4d/4d'	1.	1.12.2021	23:43:17	lx	(4. palvelin)

* organization id 'demo-4d-0', combining redirect preferences: '4d, default'	1.	1.12.2021	23:43:17	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/../nc-preference/.nc-env.json'	1.	1.12.2021	23:43:17	lx	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'	1.	1.12.2021	23:43:17	lx	(4. palvelin)

  database connect time: 0.0001 seconds.	1.12.2021	23:43:17	lx	(4. palvelin)

* auth: connection changed from 'rest4d/4d' to 'plg4d/plg4d'	1.	1.12.2021	23:43:17	lx	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d: company-customer', query: 'nil'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1.	1.12.2021	23:43:17	lx	(4. palvelin)

  - sql execute 'plg4d/plg4d: company-customer', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1.	1.12.2021	23:43:17	lx	(4. palvelin)

warning: unknown field type, field 'name_id'
	1.	1.12.2021	23:43:17	lx	(4. palvelin)

warning: unknown field type, field 'text_value'
	1.	1.12.2021	23:43:17	lx	(4. palvelin)

*** tcp close for sock 82, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 777 bytes ***	1.	1.12.2021	23:43:23	lx	(4. palvelin)

closing socket '82'	1.	1.12.2021	23:43:23	lx	(4. palvelin)

